﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace PropertyManagementSystemAPI.Models {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "menu", DisableSyncStructure = true)]
	public partial class Menu {

		/// <summary>
		/// 菜单编号
		/// </summary>
		[JsonProperty, Column(Name = "M_Id", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int MId { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[JsonProperty, Column(Name = "M_CreateTime", DbType = "datetime")]
		public DateTime? MCreateTime { get; set; }

		/// <summary>
		/// 菜单父级编号
		/// </summary>
		[JsonProperty, Column(Name = "M_FatherId", DbType = "int")]
		public int? MFatherId { get; set; }

		/// <summary>
		/// 菜单名
		/// </summary>
		[JsonProperty, Column(Name = "M_Name", StringLength = 50)]
		public string MName { get; set; }

		/// <summary>
		/// 菜单状态（0未启用，1启用）
		/// </summary>
		[JsonProperty, Column(Name = "M_State", DbType = "int")]
		public int? MState { get; set; }

		/// <summary>
		/// 菜单描述
		/// </summary>
		[JsonProperty, Column(Name = "M_Text", StringLength = 50)]
		public string MText { get; set; }

	}

}
